package com.zhixue.search.dto;


import lombok.Data;

import java.util.List;

@Data
public class SearchPageResultDto<T> {

    //大分类列表
    List<String> mtList;
    //小分类列表
    List<String> stList;

    // 数据列表
    private List<T> items;

    //总记录数
    private long counts;

    //当前页码
    private long page;

    //每页记录数
    private long pageSize;

    public SearchPageResultDto(List<T> items, long counts, long page, long pageSize) {
        this.items = items;
        this.counts = counts;
        this.page = page;
        this.pageSize = pageSize;
    }
}
